package com.zusmart.test.service.impl;

import com.zusmart.core.bean.annotation.Autowired;
import com.zusmart.core.bean.annotation.Component;
import com.zusmart.test.service.IMemberService;

@Component
public class ConstructorServiceD {

	public ConstructorServiceD() {
		System.out.println("ConstructorServiceD -> 无参构造函数实例化");
	}

	// 强制使用有参构造函数实例化,单不注入参数
	@Autowired
	public ConstructorServiceD(@Autowired("remoteMemberServiceImpl") IMemberService memberService) {
		System.out.println("ConstructorServiceD -> 有参构造函数实例化 -> 注入属性 ->" + memberService);
	}

}